package com.sungu.yixili.ui;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.sungu.yixili.utils.AppManager;

/**
 * Created by Administrator on 15-10-9.
 */
public class BaseActivity extends FragmentActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppManager.getAppManager().addActivity(this);
    }



    @Override
    public void onBackPressed() {
        super.onBackPressed();
        AppManager.getAppManager().finishActivity();
    }
}
